package domo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-02
 * Time: 16:56
 */
public class Test3 {
    public static void main(String[] args) {
        /*String str = "hello world!";
        String str1 = str.replace('l','x');*/
        String s1="abc"+"def";//1
        String s2=new String(s1);//2
        if(s1.equals(s2))//3
            System.out.println(".equals succeeded");//4
        if(s1==s2)//5
            System.out.println("==succeeded");//6
    }
}
